﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

using content = umbraco.content;

namespace Elliance.Umbraco.XPathEvaluator
{
    public partial class xpath_evaluator : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected string UmbracoXml
        {
            get
            {
                using (StringWriter sw = new StringWriter())
                {
                    using (XmlTextWriter tw = new XmlTextWriter(sw))
                    {
                        content.Instance.XmlContent.WriteTo(tw);
                        return sw.ToString();
                    }
                }
                
            }
        }
    }
}
